package com.web.expspringboot.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/custom")
public class CustomController {

    @Value("${custom.appName}")
    String appName;

    @Value("${custom.appDetail}")
    String appDetail;
    
    @Value("${custom.collegeName}")
    String collegeName;

    @Value("${custom.helpContent}")
    String helpContent;

    @GetMapping("/appName")
    public String getAppName(){
        return appName;
    }

    @GetMapping("/appDetail")
    public String getAppDetail(){
        return appDetail;
    }

    @GetMapping("/collegeName")
    public String getCollegeName(){
        return collegeName;
    }

    @GetMapping("/helpContent")
    public String getHelpContent(){
        return helpContent;
    }
}
